package com.enjoyor.soa.traffic.rest.tsms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.tsms.RoutePointDto;
import com.enjoyor.soa.traffic.api.service.dubbo.tsms.IDubboRoutePointService;
import com.enjoyor.soa.traffic.rest.tsms.dubbo.IRoutePointConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class RoutePointConsumeService implements IRoutePointConsumeService{

	@Reference(version = "1.0.0", timeout = 10000)
	
	private IDubboRoutePointService iDubboRoutePointService;

	@Override
	public ResultPojo getPointPage(Page page, String routeId, String routePointId, String pathPointName) {
		// TODO Auto-generated method stub
		return iDubboRoutePointService.getRoutePointPage(page, routeId, routePointId, pathPointName);
	}

	@Override
	public ResultPojo getPointList(String routeId, String routePointId, String pathPointName) {
		// TODO Auto-generated method stub
		return iDubboRoutePointService.getRouteList(routeId, routePointId, pathPointName);
	}

	@Override
	public ResultPojo insertRoutePoint(RoutePointDto routePointDto, String personName) {
		// TODO Auto-generated method stub
		return iDubboRoutePointService.insert(routePointDto, personName);
	}

	@Override
	public ResultPojo deleteRoutePoint(String pointId, String routeId, String personName) {
		// TODO Auto-generated method stub
		return iDubboRoutePointService.delete(pointId, routeId, personName);
	}
	
}
